package simple14.discount;

public class SecondDiscount extends MultyDiscount {

    public SecondDiscount(MultyDiscount nextMultyDiscount) {
        super(nextMultyDiscount);
    }

    @Override
    public int calculate(int money) {
        System.out.println("第二件打9折");
        Double balance = money*0.9;

        return super.calculate(balance.intValue());
    }
}
